package com.shiguiwu.springmybatis.data.mongo.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * @description: 文章
 * @author: stone
 * @date: Created by 2022/7/16 22:06
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.mongo.entity
 */
@Document("posts")
@Data
public class Posts {

    @Id
    @Field("_id")
    private String id;


    @Field("user_name")
    private String username;

    @Field("post_text")
    private String postText;

    private String status;


}
